import Vue from 'vue'
import 'element-ui/lib/theme-chalk/index.css'

import {
    Icon,   /*图标*/
    Input,  /*输入框*/
    Steps,  /*步骤条*/
    Step,
    Select, /*选择器*/
    OptionGroup,
    Option,
    Button, /*按钮*/
    Backtop,/*返回顶部*/
    Loading,/*动画加载*/
    Breadcrumb,/*面包屑*/
    BreadcrumbItem,
    Tooltip,/*文字提醒*/
    Pagination, /*分页器*/
    Link, /*文字链接*/
    Form,/*表单*/
    FormItem,/*表单*/
    Dropdown,/*下拉菜单*/
    DropdownMenu,
    DropdownItem,
    Avatar,/*头像*/
    Popover,/*弹出框*/
    Upload,/*文件上传*/
    Dialog,
    Collapse,
    CollapseItem,
} from 'element-ui'

/*引入内置过渡动画*/
import CollapseTransition from 'element-ui/lib/transitions/collapse-transition';

Vue.use(Icon)
Vue.use(Input)
Vue.use(Steps)
Vue.use(Step)
Vue.use(Select)
Vue.use(OptionGroup)
Vue.use(Option)
Vue.use(Button)
Vue.use(Backtop)
Vue.use(Loading)
Vue.use(Breadcrumb)
Vue.use(BreadcrumbItem)
Vue.use(Tooltip)
Vue.use(Pagination)
Vue.use(Link)
Vue.use(Form)
Vue.use(FormItem)
Vue.use(Dropdown)
Vue.use(DropdownMenu)
Vue.use(DropdownItem)
Vue.use(Avatar)
Vue.use(Popover)
Vue.use(Upload)
Vue.use(Dialog)
Vue.use(Collapse)
Vue.use(CollapseItem)
Vue.component(CollapseTransition.name, CollapseTransition)

/**
 * Element全局方法
 */
import {Notification, Message} from 'element-ui';

Vue.prototype.$notify = Notification    /*通知*/
Vue.prototype.$message = Message    /*消息*/